#!/bin/bash

arm-none-eabi-gcc blinky.c startup_gcc.c -g -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -Os -ffunction-sections -fdata-sections -MD -std=c99 -Wall -pedantic -DPART_LM4F120H5QR -c -I/home/atreyu/Source/stellaris/stellarisware  -DTARGET_IS_BLIZZARD_RA1

arm-none-eabi-ld -T blinky.ld --entry ResetISR -o a.out startup_gcc.o blinky.o --gc-sections


arm-none-eabi-objcopy -O binary a.out blink.bin

#lm4flash blink.bin
sudo ~/Source/stellaris/lm4tools/lm4flash/lm4flash blink.bin



#ta info: yuanye@uvic.ca
